package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);
    //分页查询
    List<Permission> selectForList(QueryObject qo);
    //权限查询
    Permission selectBypermission(@Param("name") String name, @Param("expermission") String expermission);
    //通过角色id查询权限
    List<Permission> selectByRid(Long id);
}